package jmine.tec.web.wicket.component.menu;

import jmine.tec.web.wicket.component.AutoHideMarkupContainer;

import org.apache.wicket.markup.html.panel.Panel;

/**
 * @author katsuo.ogawa
 * @date Jul 5, 2011
 */
public class MenuItemPanel extends Panel {

    private final AutoHideMarkupContainer menuContainer;

    /**
     * Construtor.
     * 
     * @param label label.
     * @param menuContainer {@link AutoHideMarkupContainer}
     */
    public MenuItemPanel(String label, AutoHideMarkupContainer menuContainer) {
        super("menuContainerPanel");
        this.menuContainer = menuContainer;
        this.add(menuContainer);
    }

    /**
     * @return the menuContainer
     */
    public AutoHideMarkupContainer getMenuContainer() {
        return menuContainer;
    }

}